package com.numberone.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.numberone.system.mapper.NoticeYplMapper;
import com.numberone.system.domain.NoticeYpl;
import com.numberone.system.service.INoticeYplService;
import com.numberone.common.support.Convert;

/**
 * 公告于沛麟 服务层实现
 * 
 * @author numberone
 * @date 2020-09-27
 */
@Service
public class NoticeYplServiceImpl implements INoticeYplService 
{
	@Autowired
	private NoticeYplMapper noticeYplMapper;

	/**
     * 查询公告于沛麟信息
     * 
     * @param id 公告于沛麟ID
     * @return 公告于沛麟信息
     */
    @Override
	public NoticeYpl selectNoticeYplById(Long id)
	{
	    return noticeYplMapper.selectNoticeYplById(id);
	}
	
	/**
     * 查询公告于沛麟列表
     * 
     * @param noticeYpl 公告于沛麟信息
     * @return 公告于沛麟集合
     */
	@Override
	public List<NoticeYpl> selectNoticeYplList(NoticeYpl noticeYpl)
	{
	    return noticeYplMapper.selectNoticeYplList(noticeYpl);
	}
	
    /**
     * 新增公告于沛麟
     * 
     * @param noticeYpl 公告于沛麟信息
     * @return 结果
     */
	@Override
	public int insertNoticeYpl(NoticeYpl noticeYpl)
	{
	    return noticeYplMapper.insertNoticeYpl(noticeYpl);
	}
	
	/**
     * 修改公告于沛麟
     * 
     * @param noticeYpl 公告于沛麟信息
     * @return 结果
     */
	@Override
	public int updateNoticeYpl(NoticeYpl noticeYpl)
	{
	    return noticeYplMapper.updateNoticeYpl(noticeYpl);
	}

	/**
     * 删除公告于沛麟对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteNoticeYplByIds(String ids)
	{
		return noticeYplMapper.deleteNoticeYplByIds(Convert.toStrArray(ids));
	}

	@Override
	public List<NoticeYpl> query() {
		return noticeYplMapper.selectByList();
	}

}
